<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">

    <div class="modal-header">
        <h4 class="modal-title" id="myEquipmentLabel" jhiTranslate="apiApp.equipment.home.createOrEditLabel">Create or edit a Equipment</h4>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                (click)="clear()">&times;</button>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" [hidden]="!equipment.id">
            <label for="id" jhiTranslate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                   [(ngModel)]="equipment.id" readonly />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.objId" for="field_objId">Obj Id</label>
            <input type="text" class="form-control" name="objId" id="field_objId"
                [(ngModel)]="equipment.objId"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.name" for="field_name">Name</label>
            <input type="text" class="form-control" name="name" id="field_name"
                [(ngModel)]="equipment.name"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.pid" for="field_pid">Pid</label>
            <input type="text" class="form-control" name="pid" id="field_pid"
                [(ngModel)]="equipment.pid"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.haschildren" for="field_haschildren">Haschildren</label>
            <input type="text" class="form-control" name="haschildren" id="field_haschildren"
                [(ngModel)]="equipment.haschildren"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.imgurl" for="field_imgurl">Imgurl</label>
            <input type="text" class="form-control" name="imgurl" id="field_imgurl"
                [(ngModel)]="equipment.imgurl"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.treeid" for="field_treeid">Treeid</label>
            <input type="text" class="form-control" name="treeid" id="field_treeid"
                [(ngModel)]="equipment.treeid"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.exvalue" for="field_exvalue">Exvalue</label>
            <input type="text" class="form-control" name="exvalue" id="field_exvalue"
                [(ngModel)]="equipment.exvalue"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.nodemodel" for="field_nodemodel">Nodemodel</label>
            <input type="text" class="form-control" name="nodemodel" id="field_nodemodel"
                [(ngModel)]="equipment.nodemodel"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.itemtype" for="field_itemtype">Itemtype</label>
            <input type="text" class="form-control" name="itemtype" id="field_itemtype"
                [(ngModel)]="equipment.itemtype"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.orderid" for="field_orderid">Orderid</label>
            <input type="text" class="form-control" name="orderid" id="field_orderid"
                [(ngModel)]="equipment.orderid"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.nodewhbz" for="field_nodewhbz">Nodewhbz</label>
            <input type="text" class="form-control" name="nodewhbz" id="field_nodewhbz"
                [(ngModel)]="equipment.nodewhbz"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.nodeyxzt" for="field_nodeyxzt">Nodeyxzt</label>
            <input type="text" class="form-control" name="nodeyxzt" id="field_nodeyxzt"
                [(ngModel)]="equipment.nodeyxzt"  />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="apiApp.equipment.orgid" for="field_orgid">Orgid</label>
            <input type="text" class="form-control" name="orgid" id="field_orgid"
                [(ngModel)]="equipment.orgid"  />
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" (click)="clear()">
            <span class="fa fa-ban"></span>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
            <span class="fa fa-save"></span>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
        </button>
    </div>
</form>
